import { request } from './request'

export function  getSongDetail(ids) {
   return request({
     url: '/song/detail/',
     params: {
       ids: ids
     }
   })
}
//音乐url
export function  getSongUrl(id) {
  return request({
    url: '/song/url/',
    params: {
      id: id
    }
  })
}
//歌词
export function getLyric(id) {
  return request({
    url: '/lyric',
    params: {
      id: id
    }
  })
}

export class songInfo {
  constructor(data) {
    this.name = data.name;
    this.img = data.al.picUrl;
    this.time = data.dt
    this.singer = data.ar
    this.singerId = data.ar
  }
}